package org.jeecg.modules.demo.havedividend.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.havedividend.entity.HaveDividend;
import org.jeecg.modules.demo.havedividend.mapper.HaveDividendMapper;
import org.jeecg.modules.demo.havedividend.service.IHaveDividendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 已提现分红
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class HaveDividendServiceImpl extends ServiceImpl<HaveDividendMapper, HaveDividend> implements IHaveDividendService {
    @Autowired
    private HaveDividendMapper haveDividendMapper;

    // 根据股东Id查询
    @Override
    public IPage<HaveDividend> getByStockId(Page<HaveDividend> page, String stockId) {
        return haveDividendMapper.getByStockId(page, stockId);
    }
}
